<template>
  <div class='container'>
    <div class="m-20-t">
      <div class='app-row'>
        <span class="title bold align-right" style="width: 140px">请输入新的密码:</span>
        <el-input class=' password-input' v-model="password_value"></el-input>
      </div>
    </div>
    <div class="app-row j-c-c m-100-t">
      <el-button type="success" @click="set_button">确认修改</el-button>
    </div>
  </div>
</template>

<script>
  import set_password_request from "@/api/set_password_request"
  export default {
    name: 'user_setting',
    data() {
      return {
        password_value: "",
    }
    },
    created() {
      console.log(this.$store);
    },
    mounted() {
  
    },
    methods: {
      set_button() {
        let params = {
          password: this.password_value,
          // id: this.$route.query.id
        }
        set_password_request.set_password(params, res=> {
          this.$router.push('/academic/goods')
        })
      },



    }
  }
</script>

<style scoped>
@import "~@/styles/layout.scss";

.password-input {
  width: 250px !important;
}
</style>